package anji.plus.system.mark.service.impl;

import anji.plus.system.mark.base.BaseServiceImpl;
import anji.plus.system.mark.domain.Account;
import anji.plus.system.mark.mapper.AccountMapper;
import anji.plus.system.mark.service.IAccountService;
import anji.plus.system.mark.vo.AccountInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * <p>
 * 系统用户表 服务实现类
 * </p>
 *
 * @author zhouchong
 * @since 2023-11-08
 */
@Service
public class AccountServiceImpl extends BaseServiceImpl<AccountMapper, Account> implements IAccountService {

    @Resource
    private AccountMapper accountMapper;


    @Override
    public AccountInfo queryAccount() {
        AccountInfo accountInfo = new AccountInfo();
        accountInfo.setAccountNum(accountMapper.query1());
        accountInfo.setAccountIncomeNum(accountMapper.query2());
        accountInfo.setAccountExpNum(accountMapper.query3());
        return accountInfo;
    }
}
